package com.tjp.eight;

import android.app.Application;

import com.iflytek.cloud.SpeechConstant;
import com.iflytek.cloud.SpeechUtility;
import com.umeng.socialize.Config;
import com.umeng.socialize.PlatformConfig;
import com.umeng.socialize.UMShareAPI;

import static com.umeng.socialize.utils.DeviceConfig.context;

/**
 * Created by Administrator on 2017/2/13.
 */

public class WApplication extends Application {
    private static WApplication wApplication;



    public static WApplication getInstance() {
        return wApplication;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        Config.DEBUG = false;
        {
            PlatformConfig.setWeixin("wx704cd49bf4c71ef9", "a5b798c3a57794f2f72ce2d5626b4abc");
            PlatformConfig.setQQZone("1105677730", "yo5lrI6ZfWrlz6QD");
        }
        UMShareAPI.get(this);
        wApplication = this;
        SpeechUtility.createUtility(this, SpeechConstant.APPID +"=5912c83b");
    }

    public static WApplication getwApplication() {
        return wApplication;
    }
}
